/**
 * 连接mongodb
 */

'use strict';
var mongoose = require('mongoose');
var config = require('./config/config.js');

mongoose.connect(config.mongodb.dbPath);
mongoose.Promise = require('q').Promise;// support catch/fail
module.exports = mongoose;